{% extends "member/layout.html" %}

{% block content %}
<div class="container">
    <h2>待审核项目</h2>

    <div class="card">
        <div class="card-body">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>项目名称</th>
                        <th>创建人</th>
                        <th>提交时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    {% for project in projects %}
                    <tr>
                        <td>
                            <a href="{{ url_for('member.jira.project_detail', project_id=project.id) }}">
                                {{ project.name }}
                            </a>
                        </td>
                        <td>{{ project.owner.name }}</td>
                        <td>{{ project.submitted_at.strftime('%Y-%m-%d') }}</td>
                        <td>
                            <a href="{{ url_for('member.jira.project_detail', project_id=project.id) }}"
                               class="btn btn-sm btn-info">审核</a>
                        </td>
                    </tr>
                    {% else %}
                    <tr>
                        <td colspan="4" class="text-center">暂无待审核项目</td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %}